home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 / MACD 5.bin / workbench / monitory / amyload / printmessage.c < prev    next >
C/C++ Source or Header  |  1987-11-15  |  752b  |  33 lines

  1. /*
  2. static char *messages[] = {
  3.     "Blitter Overheating!",
  4.     "Blitter Temperature Critical!",
  5.     "CPU Load Critical!",
  6.     "System Overloaded - Please Log Out.",
  7.     "Use Me."
  8. };
  9. */
  10. #include    <intuition/intuition.h>
  11. #include    "execdef.h"
  12. #include    "intuidef.h"
  13. #include    "windowinfo.h"
  14.  
  15. #include    "PrintMessage.proto"
  16.  
  17. #include    <graphics/proto.h>
  18.  
  19. void
  20. PrintMessage(window, message, line_num, pen)
  21.     Window *window;
  22.     char *message;
  23.     short line_num;
  24.     unsigned char pen;
  25. {
  26.     RastPort *rport;
  27.  
  28.     rport = window->RPort;
  29.     SetAPen(rport, pen);
  30.     Move(rport, (short)(WINDOWINFO(window)->leftedge + 2), (short)((rport->TxHeight+2) * line_num + WINDOWINFO(window)->topedge + 2));
  31.     Text(rport, message, strlen(message));
  32. }
  33.